﻿@model Feedback
@{ 
    ViewBag.Title = "Submit Feedback";
    var module = ViewBag.Module as Module;
}
<p>Hellp us improve the quality of our modules by providing your comments and feedback for @module.Title on @module.Start.ToShortDateString().</p>
@Html.ValidationSummary(true, "Please provide comments before submitting.")
@using (Html.BeginForm("SubmitFeedback", "My", new { id = module.Id }, FormMethod.Post))
{
    <div class="editor-field">
        @Html.TextAreaFor(m => m.Comments, new { rows = "4", cols = "80" })
        @Html.ValidationMessageFor(m => m.Comments)
    </div>
    <p class="buttons"><input type="submit" value="Submit Feedback" /></p>
}